<html jwcid="@Border" title="message:admin.eventlist.title">
	<h1><span jwcid="@Insert" value="message:admin.eventlist.title"/></h1>
	<form jwcid="categoryForm">
		<span jwcid="categorySelection" onchange="this.form.submit()"/>
	</form>
	<span jwcid="period"/>
	<div jwcid="results@Any">
		<span jwcid="@bookie:ShowErrors" delegate="ognl:delegate"/>
		<span jwcid="@bookie:ShowMessage" message="ognl:message"/>
		<table jwcid="eventTable" class="dataTable">
		    <tr><span jwcid="@contrib:TableColumns"/></tr> 
		    <tr jwcid="row@contrib:TableRows">
		        <td><span jwcid="@Insert" value="ognl:components.row.tableRow.category.name"/></td>
		        <td><span jwcid="@Insert" value="ognl:components.row.tableRow.label"/></td>
		        <td><span jwcid="@bookie:InsertDate" value="ognl:components.row.tableRow.endDate"/></td>
		        <td>
		        	<span jwcid="@If" condition="ognl:isCancelable(components.row.tableRow)">
		        		<a jwcid="cancelLink"><img jwcid="@Image" image="asset:editClearImageAsset"/></a>
		        	</span>
		        	<span jwcid="@Else">-</span>
		        </td>
		        <td><img jwcid="@Image" image="ognl:getStatusIcon(components.row.tableRow)"/></td>
		        <td><a jwcid="editLink"><img jwcid="@Image" image="asset:editImageAsset"/></a></td>
		    </tr>
		 <tr>
		 	<td colspan="6">
		  		<span jwcid="@contrib:TablePages"/>
		  	</td>
		 </tr>
		</table>
	</div>
	<div jwcid="cancelDialog">
		<div jwcid="@If" condition="ognl:eventId!=null" class="dialog">
			<form jwcid="@Form">
			<h2><span jwcid="@Insert" value="ognl:getMessages().format('admin.eventlist.confirmation',eventDAO.findById(eventId).label)"/></h2>
			<center><input jwcid="cancelSubmit" class="button"/>&nbsp;&nbsp;<input jwcid="cancelHide" class="button"/></center>
			</form>
		</div>
	</div>
</html>